package com.swt.test.dao;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class Student implements InitializingBean,DisposableBean {
	private String name ;
	private String address;
	public void init() {
		System.out.println("student========init");
	}

	
	public void destory() {
		System.out.println("student========destory");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}


	public void afterPropertiesSet() throws Exception {
		System.out.println("zhixingafterPropertiesSet");
	}


	public void destroy() throws Exception {
	   System.out.println("destory");
	}
    
}
